import service from "../request/request";
// 获取宠物信息列表
export const GetPetMessageService = ({query, page, pageSize}) => {
    return service({
        method: 'GET',
        url: '/admincharge/petmsg/',
        headers: {
            'Authorization': 'Bearer'+" " + localStorage.getItem('admin_token')
        },
        params: {
            keyword: query,
            currentPage: page,
            pageSize: pageSize
        }
    })
}

// 新添一份宠物信息数据
export const AddMessageService = (MessageForm) => {
    return service({
        method: 'POST',
        url: '/admincharge/petmsg/',
        data: MessageForm
    })
}


// 删除一份宠物信息数据
export const deleteNoticeUrlService = (Id) => {
    return service({
        method: 'POST',
        url: '/admincharge/petmsg/' + Id + '/',
    })
}

// 批量删除
export const deleteNoticeUrlsService = (Ids) => {
    return service({
        method: 'POST',
        url: '/admincharge/petmsg/deletemany/',
        data: Ids
    })
}

// 编辑
export const editMessageService = (MessageForm) => {
    return service({
        method: 'POST',
        url: '/admincharge/petmsg/edit/',
        data: MessageForm
    })
}
